package speed2010.matcher.basics.ontology;

public abstract class OntologyResource {

	public abstract String getDescription();
	public abstract String getURI();
	public abstract String getRealName();
	
	@Override
	public boolean equals(Object obj) {
		
		boolean isEqual = false;
		
		if(obj instanceof OntologyResource)
		{
			OntologyResource or = (OntologyResource) obj;
			
			if(this.getRealName() != null && or.getRealName() != null)
			{
				isEqual = this.getRealName().equals(or.getRealName());
			}
		}
		
		return isEqual;
	}
	
}
